﻿using Microsoft.AspNetCore.Http.Features;
using RsCode.AspNetCore;
using RsCode.AspNetCore.Plugin;

namespace Plugin.Upload
{
    internal class PluginSetup : IPluginSetup
    {
        public int Order => 100;

        public void Configure(IApplicationBuilder app, IHostEnvironment env)
        {
            
        }

        public void ConfigureServices(IServiceCollection services)
        {
            services.AddRsCode();

            services.Configure<FormOptions>(options =>
            {
                options.MultipartBodyLengthLimit = 104857600; //最大100M
            });
        }
    }
}




